<?php
	
	session_start();
	
	$action = $_GET['ac'];
	
	if ( $action=='logout' )
	{
		unset($_SESSION['user']);
		setcookie('password', '', 0, '/');
	}
	
	if ( $action=='logout' )
	{
		header('Location: /');
	}

?>
